// import http from "../$alova";
import http, { RequestHttp } from "../$axios";
import { Base, Get, Post } from "@/api/helper/decorator";
import type { UserApiType, ResultData, RES } from "../interface/";
import menuJson from "@/assets/json/menu.json";
import buttonJson from "@/assets/json/button.json";

// ! 登录模块
class LoginApi extends RequestHttp {
  @Post("/login")
  postLogin(params: any) {
    return this.send.call(this, "postLogin", params);
  }

  @Get("/menu")
  getMenu() {
    // return this.send.call(this, "getMenu", params);
    return menuJson;
  }

  @Get("/buttonAuth")
  getButtonAuth() {
    // return this.send.call(this, "getButtonAuth", params);
    return buttonJson;
  }
}
export const loginApi = new LoginApi();
